package com.entrogy.bean;

import com.fasterxml.jackson.annotation.JsonFormat;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;
import lombok.experimental.Accessors;
import org.springframework.format.annotation.DateTimeFormat;

import java.util.Date;
import java.util.List;

/**
 * @ClassName SalarySlipTemplateEntity
 * @Description 工资条模板实体类
 * @Author luoxingjiang
 * @Date 2019/8/27 0027 下午 1:37
 * @Version 1.0
 **/
@SuppressWarnings("serial")
@AllArgsConstructor
@NoArgsConstructor
@Data
@Accessors(chain = true)
public class SalarySlipTemplateEntity {

    //自增id
    private Integer id;

    //模板名
    private String templateName;

    //创建时间
    @DateTimeFormat(pattern="yyyy-MM-dd HH:mm:ss")
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    private Date createTime;

    //更新时间
    @DateTimeFormat(pattern="yyyy-MM-dd HH:mm:ss")
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    private Date updateTime;

    //创建人id
    private String createUserId;

    //创建人姓名
    private String createUsername;

    //学校id
    private Integer schoolCode;

    //工资条模板所含属性
    private List<SalaryComposeEntity> salaryComposeList;


}
